package com.qfedu.smart_community.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName meter_archives
 */
public class MeterArchives implements Serializable {
    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 房间号
     */
    private Integer roomNum;

    /**
     * 表号
     */
    private String tableNumber;

    /**
     * 安装度数
     */
    private Double installationReading;

    /**
     * 倍率
     */
    private Double multiplier;

    /**
     * 量程
     */
    private Double range;

    /**
     * 状态：0运行/1报停/2检修
     */
    private Integer state;

    /**
     * 安装日期
     */
    private Date installationDate;

    /**
     * 报停日期
     */
    private Date stopDate;

    /**
     * 抄表员
     */
    private String meterReader;

    /**
     * 备注
     */
    private String remark;

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 房间号
     */
    public Integer getRoomNum() {
        return roomNum;
    }

    /**
     * 房间号
     */
    public void setRoomNum(Integer roomNum) {
        this.roomNum = roomNum;
    }

    /**
     * 表号
     */
    public String getTableNumber() {
        return tableNumber;
    }

    /**
     * 表号
     */
    public void setTableNumber(String tableNumber) {
        this.tableNumber = tableNumber;
    }

    /**
     * 安装度数
     */
    public Double getInstallationReading() {
        return installationReading;
    }

    /**
     * 安装度数
     */
    public void setInstallationReading(Double installationReading) {
        this.installationReading = installationReading;
    }

    /**
     * 倍率
     */
    public Double getMultiplier() {
        return multiplier;
    }

    /**
     * 倍率
     */
    public void setMultiplier(Double multiplier) {
        this.multiplier = multiplier;
    }

    /**
     * 量程
     */
    public Double getRange() {
        return range;
    }

    /**
     * 量程
     */
    public void setRange(Double range) {
        this.range = range;
    }

    /**
     * 状态：0运行/1报停/2检修
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态：0运行/1报停/2检修
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 安装日期
     */
    public Date getInstallationDate() {
        return installationDate;
    }

    /**
     * 安装日期
     */
    public void setInstallationDate(Date installationDate) {
        this.installationDate = installationDate;
    }

    /**
     * 报停日期
     */
    public Date getStopDate() {
        return stopDate;
    }

    /**
     * 报停日期
     */
    public void setStopDate(Date stopDate) {
        this.stopDate = stopDate;
    }

    /**
     * 抄表员
     */
    public String getMeterReader() {
        return meterReader;
    }

    /**
     * 抄表员
     */
    public void setMeterReader(String meterReader) {
        this.meterReader = meterReader;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MeterArchives other = (MeterArchives) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRoomNum() == null ? other.getRoomNum() == null : this.getRoomNum().equals(other.getRoomNum()))
            && (this.getTableNumber() == null ? other.getTableNumber() == null : this.getTableNumber().equals(other.getTableNumber()))
            && (this.getInstallationReading() == null ? other.getInstallationReading() == null : this.getInstallationReading().equals(other.getInstallationReading()))
            && (this.getMultiplier() == null ? other.getMultiplier() == null : this.getMultiplier().equals(other.getMultiplier()))
            && (this.getRange() == null ? other.getRange() == null : this.getRange().equals(other.getRange()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getInstallationDate() == null ? other.getInstallationDate() == null : this.getInstallationDate().equals(other.getInstallationDate()))
            && (this.getStopDate() == null ? other.getStopDate() == null : this.getStopDate().equals(other.getStopDate()))
            && (this.getMeterReader() == null ? other.getMeterReader() == null : this.getMeterReader().equals(other.getMeterReader()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRoomNum() == null) ? 0 : getRoomNum().hashCode());
        result = prime * result + ((getTableNumber() == null) ? 0 : getTableNumber().hashCode());
        result = prime * result + ((getInstallationReading() == null) ? 0 : getInstallationReading().hashCode());
        result = prime * result + ((getMultiplier() == null) ? 0 : getMultiplier().hashCode());
        result = prime * result + ((getRange() == null) ? 0 : getRange().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getInstallationDate() == null) ? 0 : getInstallationDate().hashCode());
        result = prime * result + ((getStopDate() == null) ? 0 : getStopDate().hashCode());
        result = prime * result + ((getMeterReader() == null) ? 0 : getMeterReader().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roomNum=").append(roomNum);
        sb.append(", tableNumber=").append(tableNumber);
        sb.append(", installationReading=").append(installationReading);
        sb.append(", multiplier=").append(multiplier);
        sb.append(", range=").append(range);
        sb.append(", state=").append(state);
        sb.append(", installationDate=").append(installationDate);
        sb.append(", stopDate=").append(stopDate);
        sb.append(", meterReader=").append(meterReader);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}